package com.cd2cd.code_template.configuration.exceptions;

import org.springframework.http.HttpStatus;

import com.cd2cd.code_template.configuration.constants.ServiceCode;

/**
 * 200
 */
public class ServiceBusinessException extends BaseRuntimeException {

	private static final long serialVersionUID = 1L;

	public ServiceBusinessException(ServiceCode serviceCode, String message, Throwable cause) {
		super(serviceCode, message, cause);
		this.httpStatus = HttpStatus.OK;
	}

	public ServiceBusinessException(ServiceCode serviceCode, Throwable cause) {
		super(serviceCode, serviceCode.msg, cause);
		this.httpStatus = HttpStatus.OK;
	}

	public ServiceBusinessException(ServiceCode serviceCode, String msg) {
		super(serviceCode, msg);
		this.httpStatus = HttpStatus.OK;
	}

}
